<?

$Prensa = new Prensa();
$prensa = $Prensa->listar();

//echo '<pre>'.print_r($prensa, true).'</pre>';
?>

				<div class="heading">
					<div class="dot">
						<div class="title-tag">
							<h1>PRENSA</h1>
						</div>
					</div>
				</div>

				<div id="gallery">
					<div class="gallery-content">
						<div class="svwp">
							<ul>
								<?	foreach ($prensa as $row): ?>
									<li><img width="800" tn="/uploads/prensa/<?=($row['img_chica']? $row['img_chica'] : $row['img_grande']) ?>" alt="<?=$row['medio']?> <br/><?=strftime("%B %G", strtotime($row['fecha']))?>" src="/uploads/prensa/<?=$row['img_grande']?>" /></li>
								<?	endforeach; ?>
							</ul>
						</div>
					</div>
				</div>

				<div class="" style="display: block; height: 50px; width: 960px;"></div>

    <link rel="stylesheet" href="/js/plugins/sliderview/svwp_style.css" type="text/css" media="screen" />
    <script src="/js/plugins/sliderview/jquery.slideViewerPro.1.5.js" type="text/javascript"></script> 

	<script type="text/javascript">

		jQuery(function(){
			jQuery("div.svwp").prepend("<img src='/js/plugins/sliderview/svwloader.gif' class='ldrgif' alt='loading...'/ >");
		});

		$(window).ready(function() {

			$("div.svwp").slideViewerPro({
				thumbs: 5,
				thumbsPercentReduction: 20,
				galBorderWidth: 0,
				galBorderColor: "aqua",
				thumbsTopMargin: 10,
				thumbsRightMargin: 10,
				thumbsBorderWidth: 0,
				thumbsActiveBorderColor: "gold",
				thumbsActiveBorderOpacity: 0.8,
				thumbsBorderOpacity: 0,
				buttonsTextColor: "#707070",
				leftButtonInner: "<img src='/img/ui/gallery-left.png' />",
				rightButtonInner: "<img src='/img/ui/gallery-right.png' />",
				autoslide: true,
				typo: true
			}); 

		}); 
	</script>
